/**
 * 认证相关类型定义
 */

/**
 * 登录表单数据
 */
export interface LoginForm {
  email: string;
  password: string;
  remember: boolean;
}

/**
 * 注册表单数据
 */
export interface RegisterForm {
  name: string;
  email: string;
  password: string;
  confirmPassword: string;
  agreeTerms: boolean;
}

/**
 * 用户信息
 */
export interface User {
  email: string;
  password: string;
  name: string;
}

/**
 * 登录结果
 */
export interface LoginResult {
  success: boolean;
  user?: {
    name: string;
    email: string;
    avatar: string;
  };
  message?: string;
}

/**
 * 注册结果
 */
export interface RegisterResult {
  success: boolean;
  message: string;
}

/**
 * 认证标签类型
 */
export type AuthTab = 'login' | 'register';

/**
 * 提示类型
 */
export type ToastType = 'success' | 'error' | 'info';

/**
 * 触觉反馈类型
 */
export type HapticType = 'light' | 'error';

/**
 * 第三方登录平台
 */
export type SocialPlatform = 'wechat' | 'qq' | 'apple';